#!/bin/bash

exec_path=$(dirname "$0")

cd ${exec_path}

mkdir -p ../data ../log

port=8082
local_host=127.0.0.1
victoria_metrics_server=127.0.0.1:8081

../bin/vmagent-prod -httpListenAddr=:${port} -promscrape.config=../conf/vmagent.yml -promscrape.config.strictParse=false -remoteWrite.tmpDataPath=../data -remoteWrite.url=http://${victoria_metrics_server}/api/v1/write -remoteWrite.maxDiskUsagePerURL=1GB  >> ${log_path}/vmagent.log 2>&1 &


sleep 1

netstat -ntlp | grep ${port}

